#ifndef ENGINE_VECTOR_2D_H
#define ENGINE_VECTOR_2D_H

namespace Math
{
	class Vector2D
	{
	public:
		float x;
		float y;
		Vector2D(float _x = 0.0f, float _y = 0.0f) :x(_x), y(_y) {}
	};

	inline Vector2D operator+(const Vector2D& lhs, const Vector2D& rhs)
	{
		return Vector2D(lhs.x + rhs.x, lhs.y + rhs.y);
	}

	inline Vector2D operator*(float scalar, const Vector2D& vector)
	{
		return Vector2D(scalar * vector.x, scalar * vector.y);
	}

	inline Vector2D operator*(const Vector2D& vector, float scalar)
	{
		return scalar*vector;
	}
}

#endif // ENGINE_VECTOR_2D_H
